package sfms.model;

import java.util.*;

public class Booking {

    public Booking() {
    }
    
    public Booking(User user, Venue venue, Date time) {
        this.user = user;
        this.venue = venue;
        this.time = time;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Venue getVenue() {
        return venue;
    }

    public void setVenue(Venue venue) {
        this.venue = venue;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getData() {
        
        return user.getData() + ", " + venue.getData() + ", " + time.toString();
    }

    private User user;
    private Venue venue;
    private Date time;
}
